package User;

import Operation.*;

public class FineUser extends User{
    IOperation[] iOperation = new IOperation[]{
            new ExitOpetation(),
            new AddOpereatin(),
            new DelOperetion(),
            new FindOperation(),
            new ShowOperation(),
    };
    @Override
    public void menu() {
        System.out.println("**************************");
        System.out.println("1.增加书籍");
        System.out.println("2.删除书籍");
        System.out.println("3.查询书籍");
        System.out.println("4.显示书籍");
        System.out.println("0.退出程序");
        System.out.println("**************************");
    }

    @Override
    public IOperation DoOperation(int n) {
        //FineUser user = new FineUser(name);
        return iOperation[n];
    }

    public FineUser(String name) {
        super(name);
    }
}
